/**
 * @author huwen
 * 温故而知新
 * @date 2023/12/28 17:33
 */
public class Demo12 {

    public static void main(String []args){

            int count = 0;

            System.out.println("1-10000中能被5整除的数为：");
            for (int num = 1; num <= 10000; num++) {
                if (num % 5 == 0) {
                    System.out.print(num + "\t");
                    count++;
                    if (count % 3 == 0) {
                        System.out.println();
                    }
                }
            }

        }
    }

